package com.springboot.demo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

@Setter
@Getter
public class PageResult<T> implements Serializable {
    @ApiModelProperty(value="当前页码")
    private Integer pageNum;

    @ApiModelProperty(value="每页数量")
    private Integer pageSize;

    @ApiModelProperty(value="记录总数")
    private Long totalSize;

    @ApiModelProperty(value="页码总数")
    private Integer totalPages;

    @ApiModelProperty(value="数据模型")
    private T content;
}